﻿@{
    ViewBag.Title = "";
    LeEdu.MODEL.Topic topic = ViewBag.topic;
    LeEdu.BLL.TopicBLL topbll = new LeEdu.BLL.TopicBLL();
}
<script src="/Content/Index/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript">

    $(function () {

        var topicid=@topic.ID
        //页面加载评论
        $.post('/Home/showtopic2',{topicid:topicid} ,function (data) {

            //alert(data);return
            $('.question-detail-item').html(data);


        })



    })



    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?cb581c4d338ec0f3b1ae74d12dad369a";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();



</script>

<div id="main">
    @*课程分布视图*@
    @Html.Partial("Front-Partial1")
    <div id="detailContent">
        <div class="detailContentLeft-tags">
            <a href="/Home/ClassHour/@ViewBag.course.CoursesId">
                <div id="videoSelect" class="detailContentLeft-video-tag">视频教程</div>
            </a>
            <a href="/Home/question">
                <div id="questionSelect " class="detailContentLeft-video-tag"><h4>互动问答</h4></div>
            </a>
            <a href="/Home/download">
                <div id="detail-resource-tab" class="detailContentLeft-video-tag">资源下载</div>
            </a>
            <a href="/Home/ShowNotes">
                <div id="detail-resource-tab" class="detailContentLeft-video-tag">笔记</div>
            </a>
            <a href="/Home/Estimat">
                <div id="estimate" class="detailContentLeft-video-tag">评价</div>
            </a>
            <a href="/Home/topics">
                <div id="estimate" class="detailContentLeft-video-tagSelect">话题</div>
            </a>

        </div>

        <!--呈现某个系列课程的具体内容页面-->
        <div id="detailContentLeft-question-list">
            <div id="question-list-left">

                @*<div>
                   
                    <a href="/course/40/question?isanswered=0"><div class="detial13 linkType">置顶/加精/普通</div></a>
                    <div class="clearBoth"></div>
                </div>*@



                <div class="question-detail-askitem">
                    <div class="question-detail-account">
                        <img style="width:100%;height:100px" src="~/Img/@topic.UserInfo.Avatar">

                    </div>                 
                        <div class="question-detail-text">
                            <div class="question-detail-label bluecontent">@topic.TopicTitle</div>
                            <div class="question-detail-name detial13">
                                <div style="float: left;margin-right:10px" class="detial13">
                            
                                    <span >@topic.UserInfo.Uname    提问于</span><span>@topbll.DateStringFromNow(topic.TopicTime)  </span>
                                    <span style="margin-left:10px;"> 浏览量：@topic.See </span>
                                </div>
                                <a href="/course/section/1000000540">
                                    <div class="question-detail-link detial13" style="max-width: 230px; text-overflow: ellipsis; overflow: hidden;float:left;margin-right:5px; white-space: nowrap; display: block"></div>
                                </a>
                                <div class="clearBoth"></div>
                            </div>
                            <pre class="question-detail-content notice15" style="font-weight: bold">内容：@topic.TopicContent</pre>

                        </div>
                    <div class="clearBoth"></div>
                </div>



                <div class="question-detail-item">



                    <div class="clearBoth"></div>
                </div>



                <div class="question-detail-askContent">
                
                    <div class="question-detail-ask-textcontent">
                        <form style="margin: 0px" action="/Home/ADDtopic" id="" method="post">
                            <textarea id="question-detail-asktext" placeholder="在这里输入回复" name="TopicContent"></textarea>
                            <input id="Tid" name="TId" value="@topic.ID" type="hidden">
                            <input id="UserInfoId" name="UserInfoId" value="@Convert.ToInt32(Session["id"])" type="hidden">
                            <input id="CoursesID" name="CoursesID" value="@Convert.ToInt32(Session["ClassId"])" type="hidden">
                            <input type="submit" value="发布" class="sbtn bluebtn" />
                        </form>
                        @*<div id="question-detail-asksubmit" >发布</div>*@
                    </div>
                    <div class="clearBoth"></div>
                </div>

            </div>
            <div id="question-list-right">
                <div id="question-ask-button-wrapper">
                    <a href="/Home/newquestion" target="_blank">
                        <div id="question-ask-button" class="lbtn bluebtn">
                            我要提问
                        </div>
                    </a>
                    <div style="border-bottom: 1px solid #ddd"></div>
                </div>
                <div id="hottest-questions">
                    <div id="hottest-questions-title" class="notice16">
                        热门问题
                    </div>
                    <div id="hottest-questions-list">
                        <a href="/course/question/4473" target="_blank">
                            <div class="questions-list-item notice14" questionid="4473"><span class="questions-list-dot">·</span>dfsgf d ff</div>
                        </a>
                        <a href="/course/question/4477" target="_blank">
                            <div class="questions-list-item notice14" questionid="4477"><span class="questions-list-dot">·</span>ffds</div>
                        </a>
                        <a href="/course/question/4479" target="_blank">
                            <div class="questions-list-item notice14" questionid="4479"><span class="questions-list-dot">·</span>你好好的 啊</div>
                        </a>
                        <a href="/course/question/4480" target="_blank">
                            <div class="questions-list-item notice14" questionid="4480"><span class="questions-list-dot">·</span>是的方式发送到答复是范德萨发大水士大夫士大夫</div>
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <div id="scourse-forbid-dialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
            <div class="modalTitleContent">
                <div class="modalTitle">提示</div>
                <div class="modalCloseButton"></div>
                <div class="clearBoth"></div>
            </div>
            <div id="scourse-forbid-content">
                <div class="notice16" id="scourse-forbid-title">
                    你尚未购买本课程，请购买后观看
                </div>
                <div class="mbtn bluebtn" id="scourse-forbid-button">知道了</div>
            </div>
        </div>
    </div>
    <input type="hidden" value="40" id="courseID">
</div>



